<template>
	<uv-popup ref="popRef" bgColor="none">
		<view class="auth-pop-layout">
			<view class="auth-pop-box">
				<image class="auth-pop-icon" src="/static/my/auth_pop_icon.png" mode="aspectFit"></image>
				<text class="auth-pop-title">服务商认证</text>
				<text class="auth-pop-subtitle">请提交服务商认证，享受更多服务</text>
				<view class="submit-btn auth-pop-btn" @tap="showAuthType">立即认证</view>
			</view>
			<view class="auth-pop-close-box">
				<image class="auth-pop-close-icon" src="/static/my/auth_pop_close.png" mode="aspectFit" @tap="close"></image>
			</view>
		</view>
	</uv-popup>
</template>

<script setup>
	import { ref } from 'vue'
	const popRef = ref(null)
	const open = ()=>{
		popRef.value.open()
	}
	const close = ()=>{
		popRef.value.close()
	}
	// 立即认证
	const showAuthType = ()=>{
		close()
		uni.navigateTo({
			url:'/pages/my/auth/auth'
		})
	}
	defineExpose({
		open,
		close
	})
	
</script>

<style lang="scss" scoped>
	.auth-pop-layout {
		width: 560rpx;
		.auth-pop-box {
			display: flex;
			flex-direction: column;
			align-items: center;
			background-color: #fff;
			border-radius: 20rpx;
			padding: 50rpx 50rpx 60rpx;
			.auth-pop-icon{
				width: 220rpx;
				height: 220rpx;
			}
			.auth-pop-title{
				font-size: 32rpx;
				font-weight: bold;
				margin: 40rpx 0;
			}
			.auth-pop-subtitle{
				font-size: 26rpx;
				color: $xh-color-9;
				margin-bottom: 60rpx;
			}
			.auth-pop-btn{
				width: 100%;
			}
		}
		.auth-pop-close-box{
			display: flex;
			align-items: center;
			justify-content: center;
			.auth-pop-close-icon{
				width: 72rpx;
				height: 72rpx;
				margin-top: 30rpx;
			}
		}
	}
</style>